import request from "../../request/request.js";

export default {
  goodsPage: (data) => request.get("/api/goods/page", data),
  goodsSearchPage: (data) => request.get("/api/search/page", data),
  goodsBrandList: () => request.get("/api/search/goodsBrandList"),
  goodsTagList: () => request.get("/api/search/goodsTagList "),

  goodsDetail: (data) => request.get("/api/goods/detail", data),
  homeGoods: (data) => request.get("/api/goods/homeGoods", data),
  recommendCateGoods: (data) =>
    request.get("/api/goods/recommendCateGoods", data),
  searchPageGoods: (data) => request.get("/api/goods/searchPageGoods", data),
  hotSearchKeyword: (data) => request.get("/api/goods/hotSearchKeyword", data),
  addGoodsBrowse: (data) => request.post("/api/goods/browse", data),

  collectGoods: (data) => request.post("/api/goods/collectGoods", data),
  unCollectGoods: (data) => request.post("/api/goods/unCollectGoods", data),
};
